// { "framework": "Vue"} 
if(typeof app=="undefined"){app=weex}
if(typeof eeuiLog=="undefined"){var eeuiLog={_:function(t,e){var s=e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringify(e):e});if(typeof this.__m==='undefined'){this.__m=app.requireModule('debug')}this.__m.addLog(t,s)},debug:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("debug",e)},log:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("log",e)},info:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("info",e)},warn:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("warn",e)},error:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("error",e)}}}
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = "./src/pages/member/setUp/setUp.vue?entry=true");
/******/ })
/************************************************************************/
/******/ ({

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!/usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../entry.js */ "./src/entry.js");
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_entry_js__WEBPACK_IMPORTED_MODULE_0__);
//
//
//
//
//
//
//
//
//
//

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
  data: function data() {
    return {
      statusBarHeight: eeui.getStatusBarHeightPx()
    };
  },
  created: function created() {
    this.initIconFont();
  },
  props: {
    title: String,
    back: {
      "default": true
    }
  },
  methods: {
    backClick: function backClick() {
      if (this.back) {
        eeui.closePage();
      }
    }
  }
});

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/setUp/setUp.vue":
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!/usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/setUp/setUp.vue ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../entry.js */ "./src/entry.js");
/* harmony import */ var _entry_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_entry_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../components/myNavbar/myNavbar.vue */ "./src/components/myNavbar/myNavbar.vue");
/* harmony import */ var _components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _api_member_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/member.js */ "./src/api/member.js");
/* harmony import */ var _api_oss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../api/oss */ "./src/api/oss.js");
/* harmony import */ var _api_user__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/api/user */ "./src/api/user.js");
//
//
//
//
//
//
//
//
//
//

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//




var picture = app.requireModule("eeuiPicture");
var network = app.requireModule("eeuiNetwork");
var picker = weex.requireModule('picker');
/* harmony default export */ __webpack_exports__["default"] = ({
  data: function data() {
    return {
      user: {},
      haveAvatar: true,
      dataObj: {
        policy: '',
        signature: '',
        key: '',
        ossaccessKeyId: '',
        dir: '',
        host: ''
      },
      value: 0,
      uuid: '',
      images: []
    };
  },
  components: {
    myNavbar: _components_myNavbar_myNavbar_vue__WEBPACK_IMPORTED_MODULE_1___default.a
  },
  created: function created() {
    this.initIconFont();
    this.getUser();
    this.beforeUpload();
  },
  methods: {
    getUser: function getUser() {
      var _this2 = this;

      var _this = this;

      Object(_api_member_js__WEBPACK_IMPORTED_MODULE_2__["getInfo"])().then(function (response) {
        _this2.user = response.data.member;

        if (_this2.user.avatar == null) {
          _this2.haveAvatar = false;
          _this2.user.avatar = '';
        } else {
          _this2.user.avatar = _this2.thumbnail(_this2.user.avatar, 180, 180);
        } // _this.user.code = Number(_this.user.code) + 10200


        _this.user.code = _this2.user.username.substr(_this2.user.username.lastIndexOf("10200_") + 6, _this2.user.username.length); // _this.username=this.user.username
      })["catch"](function (error) {});
    },
    loginOut: function loginOut() {
      var _this = this;

      eeui.openPage({
        url: 'root://pages/login/msgLogin.js',
        statusBarType: 'immersion',
        statusBarStyle: false
      }, function (result) {
        if (result.status == 'stop') {
          _this.getUser();
        }
      });
    },
    checkAuthorize: function checkAuthorize() {
      eeuiLog.log('111');
      this.user.avatar = 'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=183246121,2109342373&fm=26&gp=0.jpg';
      this.haveAvatar = true;
    },
    pick: function pick() {
      var _this3 = this;

      picker.pick({
        items: ['本地上传', '拍照上传']
      }, function (event) {
        if (event.result === 'success') {
          _this3.value = event.data;

          _this3.fileClick();
        }
      });
    },
    beforeUpload: function beforeUpload() {
      var _this4 = this;

      var _self = this;

      Object(_api_oss__WEBPACK_IMPORTED_MODULE_3__["policy"])({
        mchId: this.getGlobalData().mchId
      }).then(function (response) {
        eeuiLog.log(_this4.getGlobalData().mchId);
        _self.dataObj.policy = response.data.policy;
        _self.dataObj.signature = response.data.signature;
        _self.dataObj.ossaccessKeyId = response.data.accessKeyId;
        _self.dataObj.dir = response.data.dir;
        _self.dataObj.key = response.data.dir + '/' + _self.uuid + "${filename}";
        _self.dataObj.host = response.data.action;
        _self.host = response.data.host;
      })["catch"](function (err) {
        eeuiLog.log(err);
      });
    },
    fileClick: function fileClick() {
      var _this = this;

      _this.uuid = this.getUUID();

      if (this.value == 0) {
        picture.create({
          type: 'gallery',
          gallery: 1,
          mode: 1
        }, function (result) {
          if (result.status == 'success') {
            eeuiLog.log(result);
            var tempFilePath = result.lists[0].path;

            _this.uploadImg(tempFilePath);
          }
        });
      } else if (this.value == 1) {
        picture.create({
          type: 'camera',
          gallery: 1,
          mode: 1
        }, function (result) {
          if (result.status == 'success') {
            eeuiLog.log(result);
            var tempFilePath = result.lists[0].path;

            _this.uploadImg(tempFilePath);
          }
        });
      }
    },
    // 上传图片
    uploadImg: function uploadImg(filePath) {
      var _this = this;

      eeui.loading();
      var typePath = filePath;
      eeuiLog.log(filePath);
      _this.typePath = typePath.split('.');
      _this.dataObj.key = _this.dataObj.dir + '/' + _this.uuid + '.' + _this.typePath[_this.typePath.length - 1];
      eeuiLog.log(_this.dataObj);
      eeuiLog.log(filePath);
      network.upload({
        url: _this.dataObj.host,
        path: filePath,
        name: 'file',
        formData: _this.dataObj
      }, function (ret) {
        eeuiLog.log(ret);
        eeuiLog.log('2222');

        if (ret.status == 200 || ret.status == 204) {
          _this.user.avatar = _this.dataObj.host + '/' + _this.dataObj.dir + '/' + _this.uuid + '.' + _this.typePath[_this.typePath.length - 1];

          _this.submit();
        }

        if (ret.status != 100) {
          eeui.loadingClose();
        }
      });
    },
    submit: function submit() {
      var _this5 = this;

      var _this = this;

      _this.loading = true;
      Object(_api_user__WEBPACK_IMPORTED_MODULE_4__["update"])({
        avatar: _this.user.avatar
      }).then(function (response) {
        eeuiLog.log(response);
        _this.haveAvatar = true;
        _this.user.avatar = _this5.thumbnail(res.data.avatar, 180, 180);

        _this.$message({
          message: response.content,
          offset: 120,
          center: true
        });
      })["catch"](function (error) {});
    }
  }
});

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {
  "navbar": {
    "width": "750",
    "height": "100"
  },
  "text": {
    "fontSize": "36"
  },
  "status-bar": {
    "backgroundColor": "#FFFFFF"
  },
  "iconLeft": {
    "color": "#000000",
    "fontSize": "30",
    "paddingLeft": "30",
    "paddingRight": "30",
    "fontFamily": "iconfont2"
  }
}

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-da4f498c!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/pages/member/setUp/setUp.vue":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-da4f498c!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/pages/member/setUp/setUp.vue ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {
  "app": {
    "backgroundColor": "rgba(248,248,248,0.8)",
    "flex": 1
  },
  "mine-list": {
    "backgroundColor": "rgba(255,255,255,1)",
    "borderRadius": "16",
    "marginTop": "20",
    "marginLeft": "20",
    "marginRight": "20",
    "marginBottom": "20",
    "paddingLeft": "25",
    "paddingRight": "25",
    "boxSizing": "border-box"
  },
  "mine-list-item": {
    "height": "82",
    "position": "relative",
    "fontSize": "28",
    "fontWeight": "400",
    "color": "rgba(26,26,30,1)",
    "display": "flex",
    "flexDirection": "row",
    "alignItems": "center",
    "justifyContent": "space-between"
  },
  "contact": {
    "opacity": 0.5,
    "fontWeight": "400",
    "fontSize": "26"
  },
  "mine-list-item-head": {
    "height": "126",
    "display": "flex",
    "flexDirection": "row",
    "alignItems": "center",
    "justifyContent": "space-between",
    "position": "relative",
    "borderBottomStyle": "solid",
    "borderBottomWidth": "1",
    "borderBottomColor": "rgba(0,0,0,0.1)"
  },
  "mine-list-item-title": {
    "color": "rgba(26,26,30,1)",
    "fontSize": "30"
  },
  "mine-list-item-head-placeholder": {
    "color": "#b4b4b4"
  },
  "mine-list-item-headImage": {
    "width": "90",
    "height": "90",
    "borderRadius": 50,
    "overflow": "hidden",
    "display": "block",
    "borderStyle": "solid",
    "borderWidth": "2",
    "borderColor": "#ffffff"
  },
  "mine-list-item-head-icon": {
    "fontSize": "30",
    "opacity": 0.5,
    "fontFamily": "iconfont2"
  },
  "login-flex": {
    "display": "flex",
    "flexDirection": "row",
    "alignItems": "center"
  },
  "mine-list-button": {
    "paddingTop": 0,
    "paddingRight": 0,
    "paddingBottom": 0,
    "paddingLeft": 0,
    "height": "82",
    "backgroundColor": "rgba(255,255,255,1)",
    "fontSize": "28",
    "lineHeight": "82",
    "fontWeight": "bold",
    "color": "rgba(26,26,30,1)",
    "display": "flex",
    "justifyContent": "center",
    "alignItems": "center"
  },
  "mine-list-button-title": {
    "fontSize": "30"
  }
}

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue":
/*!**********************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue ***!
  \**********************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', [_c('div', {
    staticClass: ["status-bar"],
    style: {
      height: _vm.statusBarHeight + 'px'
    }
  }), _c('navbar', {
    staticClass: ["navbar"],
    style: {
      backgroundColor: 'white'
    }
  }, [_c('navbar-item', {
    attrs: {
      "type": "left"
    },
    on: {
      "click": _vm.backClick
    }
  }, [(_vm.back) ? _c('div', [_c('text', {
    staticClass: ["iconLeft"]
  }, [_vm._v("")])]) : _vm._e()]), _c('navbar-item', {
    attrs: {
      "type": "title"
    }
  }, [_c('text', {
    staticClass: ["text"]
  }, [_vm._v(_vm._s(_vm.title))])])], 1)], 1)
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-da4f498c!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/setUp/setUp.vue":
/*!******************************************************************************************************************************************************************************************************************************************************!*\
  !*** /usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-da4f498c!/usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/setUp/setUp.vue ***!
  \******************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: ["app"]
  }, [_c('my-navbar', {
    attrs: {
      "title": "设置"
    }
  }), _c('list', [_c('cell', {
    appendAsTree: true,
    attrs: {
      "append": "tree"
    }
  }, [_c('div', {
    staticClass: ["mine-list"]
  }, [_c('div', {
    staticClass: ["mine-list-item-head"],
    on: {
      "click": _vm.pick
    }
  }, [_c('text', {
    staticClass: ["mine-list-item-title"]
  }, [_vm._v("头像")]), _c('div', {
    staticClass: ["login-flex"]
  }, [(_vm.haveAvatar) ? _c('image', {
    staticClass: ["mine-list-item-headImage"],
    attrs: {
      "src": _vm.user.avatar
    }
  }) : _c('text', {
    staticClass: ["mine-list-item-head-placeholder"]
  }, [_vm._v("点击上传头像信息")]), _c('text', {
    staticClass: ["mine-list-item-head-icon"]
  }, [_vm._v("")])])]), _c('div', {
    staticClass: ["mine-list-item"]
  }, [_c('text', {
    staticClass: ["mine-list-item-title"]
  }, [_vm._v("昵称")]), _c('text', {
    staticClass: ["contact"]
  }, [_vm._v(_vm._s(_vm.user.name))])]), _c('div', {
    staticClass: ["mine-list-item"]
  }, [_c('text', {
    staticClass: ["mine-list-item-title"]
  }, [_vm._v("邀请码")]), _c('text', {
    staticClass: ["contact"]
  }, [_vm._v(_vm._s(_vm.user.code))])])]), _c('div', {
    staticClass: ["mine-list"]
  }, [(_vm.user.company) ? _c('div', {
    staticClass: ["mine-list-item"]
  }, [_c('text', {
    staticClass: ["mine-list-item-title"]
  }, [_vm._v("所在企业")]), _c('text', {
    staticClass: ["contact"]
  }, [_vm._v(_vm._s(_vm.user.company))])]) : _vm._e(), (_vm.user.mobile) ? _c('div', {
    staticClass: ["mine-list-item"]
  }, [_c('text', {
    staticClass: ["mine-list-item-title"]
  }, [_vm._v("手机号码")]), _c('text', {
    staticClass: ["contact"]
  }, [_vm._v(_vm._s(_vm.user.mobile))])]) : _vm._e()]), _c('div', {
    staticClass: ["mine-list"]
  }, [_c('div', {
    staticClass: ["mine-list-button"],
    on: {
      "click": _vm.loginOut
    }
  }, [_c('text', {
    staticClass: ["mine-list-button-title"]
  }, [_vm._v("切换账号")])])])])])], 1)
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ "./src/api/member.js":
/*!***************************!*\
  !*** ./src/api/member.js ***!
  \***************************/
/*! exports provided: getInfo, lockSysUser, createQrcode, memberList */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInfo", function() { return getInfo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lockSysUser", function() { return lockSysUser; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createQrcode", function() { return createQrcode; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "memberList", function() { return memberList; });
/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/request */ "./src/utils/request.js");

function getInfo() {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/getInfo',
    method: 'get'
  });
}
function lockSysUser(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/lockSysUser',
    method: 'post',
    params: params
  });
}
function createQrcode() {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/createQrcode',
    method: 'get'
  });
}
function memberList(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/member/memberList',
    method: 'get',
    params: params
  });
}

/***/ }),

/***/ "./src/api/oss.js":
/*!************************!*\
  !*** ./src/api/oss.js ***!
  \************************/
/*! exports provided: policy */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "policy", function() { return policy; });
/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/request */ "./src/utils/request.js");

function policy(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/aliyun/oss/policy',
    method: 'get',
    params: params
  });
}

/***/ }),

/***/ "./src/api/user.js":
/*!*************************!*\
  !*** ./src/api/user.js ***!
  \*************************/
/*! exports provided: getInfo, logout, getTokenByCode, sendMsg, msgLogin, register, update, accessToken, login, realName */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInfo", function() { return getInfo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logout", function() { return logout; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTokenByCode", function() { return getTokenByCode; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sendMsg", function() { return sendMsg; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "msgLogin", function() { return msgLogin; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "register", function() { return register; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "update", function() { return update; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "accessToken", function() { return accessToken; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "login", function() { return login; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "realName", function() { return realName; });
/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/request */ "./src/utils/request.js");

function getInfo(host) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/user/getInfo',
    method: 'get',
    params: {
      'host': host
    }
  });
}
function logout() {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/user/logout',
    method: 'post'
  });
} //参数:{auth_code:code,uuid:识别号,mchId:'',pluginId}

function getTokenByCode(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/user/getTokenByCode',
    method: 'get',
    params: params
  });
}
function sendMsg(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/user/sendMsg',
    method: 'post',
    params: params
  });
}
function msgLogin(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/user/msgLogin',
    method: 'post',
    params: params
  });
}
function register(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/user/tokenRegister',
    method: 'get',
    params: params
  });
}
function update(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/user/update',
    method: 'post',
    params: params
  });
}
function accessToken(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/user/access-token',
    method: 'get',
    params: params
  });
}
function login(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/user/login',
    method: 'post',
    params: params
  });
}
function realName(params) {
  return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: '/user/realName',
    method: 'get',
    params: params
  });
}

/***/ }),

/***/ "./src/components/myNavbar/myNavbar.vue":
/*!**********************************************!*\
  !*** ./src/components/myNavbar/myNavbar.vue ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-0ae5e94f!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/myNavbar/myNavbar.vue")
)

/* script */
__vue_exports__ = __webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/myNavbar/myNavbar.vue")

/* template */
var __vue_template__ = __webpack_require__(/*! !../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-0ae5e94f!../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./myNavbar.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-0ae5e94f!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/myNavbar/myNavbar.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/zhangsr/Documents/GitHub/rzico-boot-eeui/src/components/myNavbar/myNavbar.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-0ae5e94f"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__


/***/ }),

/***/ "./src/entry.js":
/*!**********************!*\
  !*** ./src/entry.js ***!
  \**********************/
/*! no static exports found */
/***/ (function(module, exports) {

// 注意：修改此文件需要重新执行npm才会生效
// 注册全局组件示例
// import headNav from './components/headNav'
// Vue.component('headNav', headNav);

/***/ }),

/***/ "./src/pages/member/setUp/setUp.vue?entry=true":
/*!*****************************************************!*\
  !*** ./src/pages/member/setUp/setUp.vue?entry=true ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-da4f498c!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./setUp.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-da4f498c!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/pages/member/setUp/setUp.vue")
)

/* script */
__vue_exports__ = __webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./setUp.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!../../../../../usr/local/lib/node_modules/eeui-cli/node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/member/setUp/setUp.vue")

/* template */
var __vue_template__ = __webpack_require__(/*! !../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-da4f498c!../../../../../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./setUp.vue */ "../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-da4f498c!../../../../../usr/local/lib/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/member/setUp/setUp.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/zhangsr/Documents/GitHub/rzico-boot-eeui/src/pages/member/setUp/setUp.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-da4f498c"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__
module.exports.el = 'true'
new Vue(module.exports)


/***/ }),

/***/ "./src/utils/request.js":
/*!******************************!*\
  !*** ./src/utils/request.js ***!
  \******************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/**
 * Created by zhangsr on 2020/7/6.
 */
var stream = weex.requireModule('stream') || {};
var eeui = app.requireModule('eeui');

var Json2Url = function Json2Url(data) {
  try {
    var tempArr = [];

    for (var i in data) {
      var key = i;
      var value = encodeURIComponent(data[i]);
      tempArr.push(key + '=' + value);
    }

    var urlParamsStr = tempArr.join('&');
    return urlParamsStr;
  } catch (err) {
    return '';
  }
};

var request = function request(data) {
  var _this = this;

  return new Promise(function (resolve, reject) {
    var gdata = eeui.getCachesString("globalData", '');
    var globalData = JSON.parse(gdata);
    var token = globalData.token; // globalData.APP_BASE_API

    var APP_BASE_API = globalData.APP_BASE_API; // var APP_BASE_API ='https://api.365.qmin365.cn:8443'

    var header = {};

    if (token != null) {
      header = {
        'Authorization': token,
        'Content-Type': 'application/json'
      };
    }

    var url = data.url;

    if (data.params != null && data.params != undefined) {
      var params = Json2Url(data.params);

      if (url.indexOf('?') >= 0) {
        url = url + '&' + params;
      } else {
        url = url + '?' + params;
      }
    }

    stream.fetch({
      headers: header,
      method: data.method,
      url: APP_BASE_API + url,
      type: 'json',
      body: data.data,
      timeout: 20000
    }, function (ret) {
      // eeuiLog.log(ret)
      if (!ret.ok) {
        eeui.toast({
          message: '请求出错',
          gravity: 'middle'
        });
        reject(ret.statusText);
      } else {
        if (ret.data.type == "error") {
          eeui.toast({
            message: ret.data.content,
            gravity: 'middle'
          });
          reject(ret.data);
        } else {
          resolve(ret.data);
        }
      }
    });
  });
};

/* harmony default export */ __webpack_exports__["default"] = (request);

/***/ })

/******/ });